package interfaces;

import java.awt.Color;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.ButtonBase;
import javafx.scene.control.Label;
import javafx.scene.control.MenuItem;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;

/**
 * Login Controller.
 */
public class PantallaInicial extends AnchorPane implements Initializable {

    private Main application;
    @FXML
    private MenuItem menulogin;
    @FXML
    private MenuItem menutitular;
    @FXML
    private MenuItem menulicencia;
    @FXML
    private MenuItem menusalir;
    @FXML
    private MenuItem menuitemacercade;
   
    
    public void setApp(Main application){
        this.application = application;
    }
    
    @Override
    public void initialize(URL location, ResourceBundle resources) {
    	
    	menulogin.setOnAction(new EventHandler<ActionEvent>() {
    	    @Override public void handle(ActionEvent e) {
    	        application.gotoLoginModal();
    	    }
    	});   
    	
    	menusalir.setOnAction(new EventHandler<ActionEvent>() {
    	    @Override public void handle(ActionEvent e) {
    	        application.gotoSalir();
    	    }
    	});   
    	menutitular.setDisable(true);
    	menulicencia.setDisable(true);
    	
    	
    	menuitemacercade.setOnAction(new EventHandler<ActionEvent>() {
    	    @Override public void handle(ActionEvent e) {
    	        application.gotoAcercaDe();
    	    }
    	});   
    }
 
  
}
